package com.ys.entity.flow;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="YSP_Deploy", catalog="Id")
public class YspDeploy extends BaseEntity<YspDeploy> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="ModelId", nameJava="modelId", typeDataBase="bigint")
	private Long modelId;
	@YsField(nameDataBase="version", nameJava="version", typeDataBase="int")
	private Integer version;
	@YsField(nameDataBase="Info", nameJava="info", typeDataBase="text")
	private String info;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public YspDeploy setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getModelId() {
		return modelId;
	}
	public YspDeploy setModelId(Long modelId) {
		this.modelId = modelId;
		return this;
	}
	public Integer getVersion() {
		return version;
	}
	public YspDeploy setVersion(Integer version) {
		this.version = version;
		return this;
	}
	public String getInfo() {
		return info;
	}
	public YspDeploy setInfo(String info) {
		this.info = info;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public YspDeploy setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public YspDeploy setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public YspDeploy setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static YspDeploy yspDeploy(
		Long modelId,
		Integer version,
		String info,
		Integer status
			) {
		YspDeploy entity = new YspDeploy();
		entity.setModelId(modelId);
		entity.setVersion(version);
		entity.setInfo(info);
		entity.setStatus(status);
		return entity;
	}
}